import time
import threading


def singing():
    for i in range(5):
        print("跳舞。。。。", i)
        time.sleep(0.5)
        
def dancing():
    for i in range(5):
        print("跳舞。。。。", i)
        time.sleep(0.5)
    
if __name__ == '__main__':
    
    # 创建线程
    singing_thread = threading.Thread(target=singing)
    # 执行线程
    singing_thread.start()
    
    # 创建线程
    dancing_thread = threading.Thread(target=dancing)
    # 执行现场
    dancing_thread.start()
